# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-wasabi
pkgver=0.7.1
pkgrel=2
pkgdesc="A lightweight console printing and formatting toolkit"
url="https://github.com/ines/wasabi"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="wasabi-$pkgver.tar.gz::https://github.com/ines/wasabi/archive/v$pkgver.tar.gz"
builddir="$srcdir/wasabi-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest-3 wasabi
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="9b264ee0d7d793b1481b79d16fe5da74180b0074d2b748f4bfcbba717dc59bb1e5052be3bfa656bffd81b30fdf62833ee7b930c886409bde9ee8856293f2f718  wasabi-0.7.1.tar.gz"
